package com.hesuwei.boot.config;

import com.hesuwei.boot.bean.Pet;
import com.hesuwei.boot.bean.User;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

/**
 * 我的配置文件
 *
 * @Auther: hesuwei
 * @Date: 2021/4/11 21:21
 */
@Import({User.class, Pet.class})
@Configuration
public class MyConfig {

    @Bean("hesuwei")
    public User getUser(){
        return new User("hesuwei", 18);
    }
}